#ifndef __PWM_H
#define __PWM_h

#include "Arduino.h"
#include "pwm_pin.h"

// PWM输出通道初始化
void PWM_Init(uint8_t GPIO,PWM_Channle chan, uint32_t freq, PWM_Bit bit_num);
// 设置PWM的频率
void PWM_SetFreq(PWM_Channle chan, uint32_t freq);
// 设置PWM的掌控比
void PWM_SetDuty(PWM_Channle chan, uint32_t duty);


#endif
